package ly;

import java.io.File;

public class Icon {
    public static String getPath(String name) {
        File file;
        String path;
        path = "demo/icon/" + name;
        file = new File(path);
        if (file.exists()) return path;

        path = "audioplayer/" + name;
        file = new File(path);
        if (file.exists()) return path;

        path = "/home/dalink/disk2/aloha_java/audioplayer/demo/icon/" + name;
        file = new File(path);
        if (file.exists()) return path;

        path = "/home/dalink/disk2/aloha_java/audioplayer/" + name;
        file = new File(path);
        if (file.exists()) return path;
        

        path = Main.app.getBundlePath() + "/assets/icon/" + name;
        file = new File(path);
        if (file.exists()) return path;
        return null;
    }
}
